package org.tc.result;

import org.tc.bean.Item;

import java.util.List;

/**
 * 封装easyUI 表格需要的数据格式
 * Created by zxd on 2018/1/29.
 */
public class EasyUIResult<T> {

    //总记录数
    private Long total;

    //查询的分页数据
    public List<T> rows;

    public EasyUIResult(){

    }

    public EasyUIResult(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
